#include "stdinc.h"
#include "Log.h"

//#include "cmd/Console.h"

#include <stdarg.h>

#define LOG_FILE	"log.txt"


CLog::CLog()
{
}

CLog::~CLog()
{
}

//#include <windows.h>
void CLog::OutputStr(char* str)
{
	//OutDbgStr(str);
//	OutputDebugStr(str);
}

void CLog::Error(char* fmt, ...)
{
	va_list args;
	va_start(args, fmt);
	vsprintf(m_tmpBuf, fmt, args);
	va_end(args);

	OutputStr(m_tmpBuf);
}

void CLog::Message(char* fmt, ...)
{
	va_list args;
	va_start(args, fmt);
	vsprintf(m_tmpBuf, fmt, args);
	va_end(args);

	OutputStr(m_tmpBuf);
}

void CLog::Debug(char* fmt, ...)
{
	va_list args;
	va_start(args, fmt);
	vsprintf(m_tmpBuf, fmt, args);
	va_end(args);

	OutputStr(m_tmpBuf);
}


void CLog::Console(char* fmt, ...)
{
	va_list args;
	va_start(args, fmt);
	vsprintf(m_tmpBuf, fmt, args);
	va_end(args);

	OutputStr(m_tmpBuf);
//	CONSOLE->Write(m_tmpBuf);
}
